from django.db import models

class Goods(models.Model):
    name = models.CharField(max_length=200, blank=True, null=True)
    price = models.CharField(max_length=200, blank=True, null=True)
    num = models.IntegerField(blank=True, null=True)

    class Meta:
        managed = False
        db_table = 'goods'


class History(models.Model):
    name = models.CharField(max_length=200, blank=True, null=True)
    goods = models.CharField(max_length=200, blank=True, null=True)
    money = models.IntegerField(default=0)

    class Meta:
        managed = False
        db_table = 'history'


class User(models.Model):
    name = models.CharField(max_length=200, blank=True, null=True)
    password = models.CharField(max_length=200, blank=True, null=True)
    money_full = models.IntegerField(blank=True, null=True)
    is_gift = models.IntegerField(blank=True, null=True)
    money = models.CharField(max_length=200, blank=True, null=True)

    class Meta:
        managed = False
        db_table = 'user'
